import axios from"axios";
import { request } from '../network/request.js'
export default ({
    namespaced: true,
    state: {
        goodsall:{
            goods:[],

        },
        //上架弹出框的数据
       
         
    },
    getters: {
 
    },
    mutations: {
        changegoods(state,goods) {
            state.goodsall.goods = goods
          },
    },
    actions: {
        //商品上架
    async getgoods(context) {
        const msg = await request({
          url: "/stroe/getgoods",//商品二级路经
          method: "get",
          param:{name:"zs"}
        })
       // console.info(msg)
        context.commit("changegoods",msg)
      },
      
     },
     
    modules: {
    }
})